<div class="layui-fluid layui-anim website-anim" id="website-expert" lay-title="专家管理">
    <div class="layui-row website-container">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body website-table-full">
                    <input type="hidden" id="expertGroupId" autocomplete="off" class="layui-input"
                           data-th-value="${expertGroupId}"/>
                    <table lay-filter="detailExpertTable" lay-data="{id: 'detailExpertTable'}"></table>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/html" id="expert-status">
    {{#  if(d.reviewForExpert){ }}
    <span>已评审</span>
    {{#  } else { }}
    <span>未评审</span>
    {{#  } }}
</script>

<script type="text/html" id="expert-choose">
    <a lay-event="chooseExpert" class="website-green">选择</a>
</script>
<script data-th-inline="none" type="text/javascript">
    layui.use(['dropdown', 'jquery', 'form', 'table', 'website','upload','dict'], function () {
        var $ = layui.jquery,
                website = layui.website,
                form = layui.form,
                table = layui.table,
                dropdown = layui.dropdown,
                dict = layui.dict,
            $view = $('#website-expert'), sortObject = {field: 'createTime', type: null}, upload = layui.upload;
        initTable();
        function initTable() {
            tableIns = website.table.init({
                elem: $view.find('table'),
                id: 'detailExpertTable',
                url: ctx + 'review/expertDetails/'+ $("#expertGroupId").val() + '/list',
                cols: [[
                    /* {type: 'checkbox'},*/
                    { type: 'numbers', title: '序号'},
                    // {field: 'code', title: '编号', minWidth: 20},
                    {field: 'name',title: '课题名称', minWidth: 100},
                    {field: 'topicName',title: '指南名称', minWidth: 100},
                    {field: 'isReviewForExpert',title: '评审状态', templet: '#expert-status', width: 100}
                ]]
            });
        }
    })
</script>